import request from '@/utils/request'

export function fatgetEmployee(params) {
  return request({
    url: '/sys/user',
    method: 'GET',
    params
  })
}

// 兜底验证新增员工
export function fataddEmployee(data) {
  return request({
    url: '/sys/user',
    method: 'POST',
    data
  })
}

// 批量导入员工
export function fetchImportExcel(data) {
  return request({
    url: '/sys/user/batch',
    method: 'POST',
    data
  })
}

// 删除员工
export function fetdelEmployee(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'DELETE'
  })
}
